package com.shop.loan.model;//package com.shop.loan.model;
//
//import com.shop.loan.util.LoanOrderUtil;
//import lombok.Getter;
//import lombok.Setter;
//import xyz.erupt.annotation.Erupt;
//import xyz.erupt.annotation.EruptField;
//import xyz.erupt.annotation.sub_erupt.Power;
//import xyz.erupt.annotation.sub_field.Edit;
//import xyz.erupt.annotation.sub_field.EditType;
//import xyz.erupt.annotation.sub_field.Readonly;
//import xyz.erupt.annotation.sub_field.View;
//import xyz.erupt.annotation.sub_field.sub_edit.ChoiceType;
//import xyz.erupt.annotation.sub_field.sub_edit.DateType;
//import xyz.erupt.annotation.sub_field.sub_edit.Search;
//import xyz.erupt.annotation.sub_field.sub_edit.VL;
//import xyz.erupt.jpa.model.MetaModelCreateVo;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.Table;
//import java.math.BigDecimal;
//import java.util.Date;
//
//@Setter
//@Getter
//@Entity
//@Table(name = "s_loan_order_loan_log")
//@Erupt(
//        name = "放款记录",
//        power = @Power(add = false, edit = false, delete = false)
//)
//public class LoanOrderLoanLog extends MetaModelCreateVo {
//
//
//    @Column(name = "order_id")
//    private Long orderId;
//
//
//    @EruptField(
//            views = @View(title = "金额", width = LoanOrderUtil.orderListByMoneyWidth),
//            edit = @Edit(title = "金额")
//    )
//    private BigDecimal money;
//
//
//    @EruptField(
//            views = @View(title = "商户订单号"),
//            edit = @Edit(title = "商户订单号", search = @Search)
//    )
//    private String outTradeNo;
//
//    @EruptField(
//            views = @View(title = "三方交易号"),
//            edit = @Edit(title = "三方交易号")
//    )
//    private String tradeNo;
//
//
//    @EruptField(
//            views = @View(title = "状态"),
//            edit = @Edit(
//                    title = "状态",
//                    type = EditType.CHOICE,
//                    search = @Search(),
//                    notNull = true,
//                    choiceType = @ChoiceType(
//                            vl = {
//                                    @VL(label = "放款中", value = "1"),
//                                    @VL(label = "放款成功", value = "2"),
//                                    @VL(label = "放款失败", value = "3"),
//                            }
//                    ))
//    )
//    private Integer status;
//
//
//    @EruptField(
//            views = @View(title = "失败原因"),
//            edit = @Edit(title = "失败原因")
//    )
//    private String reason;
//
//
//    @EruptField(
//            views = @View(title = "到账时间"),
//            edit = @Edit(title = "到账时间",
//                    readonly = @Readonly,
//                    dateType = @DateType(type = DateType.Type.DATE_TIME))
//    )
//    private Date successTime;
//
//}
